<template>
  <div class="lockup_mod" :class="themeClass">
    <v-nav :title="$t('Lockup.Lock-up mining')" :bgBase="'#121212'" :icon_color="'white'" :title_color="'white'" v-if="isDayTime === false"></v-nav>
    <v-nav :title="$t('Lockup.Lock-up mining')" :bgBase="'#EE3E57'" :icon_color="'white'" :title_color="'white'" v-if="isDayTime === true"></v-nav>
    <div class="lockup_mod_box" :class="themeClass">
      <div class="lockup_mod_box_desc" :class="themeClass1">
        <p>{{ $t('Lockup.Mining makes endless money') }}</p>
        <p>{{ $t('Lockup.info1') }}</p>
      </div>
      <div class="lockup_mod_box_denman common" :class="themeClass1">
        <div class="top">
          <div>
            <h2 :class="bgColor">{{ $t('Lockup.Take out at any time') }}</h2>
            <span>{{ $t('Lockup.dividend payment cycle') }}</span>
          </div>
          <div>
            <h2 :class="bgColor">{{ $t('Lockup.Issued daily') }}</h2>
            <span>{{ $t('Lockup.current interest') }}</span>
          </div>
        </div>
        <div class="bottom">
          <div>
            <img src="@/assets/img/ShieldCheck@2x.png" alt="" />
            <p>100% {{ $t('Lockup.Fund security') }}</p>
          </div>
          <div>
            <img src="@/assets/img/Gift@2x.png" alt="" />
            <p>{{ $t('Lockup.Uninterrupted holiday income') }}</p>
          </div>
          <div>
            <img src="@/assets/img/Database@2x.png" alt="" />
            <p>{{ $t('Lockup.Interest starts on the same day after successful deposit') }}</p>
          </div>
        </div>
      </div>
      <div class="lockup_mod_box_introduce common" :class="themeClass1">
        <h2 :class="bgColor">{{ $t('Lockup.Revenue calculation') }}</h2>
        <p>{{ $t('Lockup.info2') }}</p>
        <p>10000 x 0.5% = 50 USDT</p>
        <p>{{ $t('Lockup.info3') }}</p>
      </div>
      <!-- 隐藏 -->
      <!-- <div class="lockup_mod_box_introduce common" :class="themeClass1">
        <h2 :class="bgColor">{{ $t('Lockup.About liquidated damages') }}</h2>
        <p>{{ $t('Lockup.info4') }}</p>
      </div> -->
    </div>
    <div class="moomoo-bottom">
      <div class="moomoo-bottom-submit" :class="themeClass1">
        <van-button color="#DAAB51" round block @click="submit">{{ $t('Lockup.I want to participate') }}</van-button>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'Lockup',
  data() {
    return {
      isDayTime: false
    }
  },
  computed: {
    themeClass() {
      return this.isDayTime ? '' : 'darknight'
    },
    bgColor() {
      return this.isDayTime ? 'black' : 'white'
    },
    themeClass1() {
      return this.isDayTime ? '' : 'dark_li_color'
    }
  },
  watch: {
    '$store.state.nightMode': {
      handler(newVal) {
        this.isDayTime = newVal
      },
      immediate: true
    }
  },
  methods: {
    submit() {
      this.$router.push('/home/lockup/financial')
    }
  }
}
</script>
<style lang="less" scoped>
@import url('./index.less');
</style>
